Multiple Primary Keys

Поиск
Список
Период
Сортировка
От samsom, debra
Тема Multiple Primary Keys
Дата
Msg-id 7a4ddaa6040b2907d2@[10.1.1.200]
обсуждение исходный текст
Ответы Re: Multiple Primary Keys  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-novice

Currently I have a table on Microsoft Sequel Server that I wish to port over to Postgresql.   This table has four primary keys and it's the combination of the four fields that make the record unique.  I have created the table in Postgresql using this in my create.

CONSTRAINT "attachments_pkey"   PRIMARY KEY ("docn","issue","docna","issuea"));"

The table gets created with four primary keys, but when I copy in the data I get the following error..

"Cannot insert a duplicate key into unique index attachments_pkey"

Any ideas??

Debra Samsom
Senior Business Systems Analyst
Bristol Aerospace Ltd.
(204) 775-8331 3402
dsamsom@bristol.ca

В списке pgsql-novice по дате отправления:

Предыдущее
От: April L
Дата:
Сообщение: Indexes: which to use BTREE RTREE HASH GIST?
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Multiple Primary Keys